"use strict";
cc._RF.push(module, '565efAOMMhDA5vBfEDhyGhS', 'idiom');
// Script/game/obj/idiom.ts

/*
 * @Author: your name
 * @Date: 2020-08-05 15:22:49
 * @LastEditTime: 2020-08-10 09:58:54
 * @LastEditors: Please set LastEditors
 * @Description: 成语对象
 * @FilePath: \shici_demo\assets\Script\game\obj\data.ts
 */
Object.defineProperty(exports, "__esModule", { value: true });
var Idiom = /** @class */ (function () {
    function Idiom(targetPos, charPosArr) {
        this.lvId = 0; // 关卡id
        this.idiomData = undefined; // 成语数据
        this.poemData = undefined; // 诗词数据
        this.posArr = []; // 成语四字的格子位置
        var _pos = [];
        for (var i = 0; i < charPosArr.length; i++) {
            _pos.push(targetPos + charPosArr[i] * 9);
        }
        this.posArr = _pos;
    }
    Idiom.prototype.init = function (lvid, idiomdata, poemdata) {
        this.lvId = lvid;
        this.idiomData = idiomdata;
        this.poemData = poemdata;
    };
    return Idiom;
}());
exports.Idiom = Idiom;

cc._RF.pop();